package com.kantboot.functional.template.web.controller;

import com.kantboot.functional.template.domain.dto.FunctionalTemplateGenerateDTO;
import com.kantboot.functional.template.domain.vo.FunctionalTemplateGenerateVO;
import com.kantboot.functional.template.service.IFunctionalTemplateService;
import com.kantboot.util.common.result.RestResult;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/functional-template-web/template")
public class FunctionalTemplateController {

    @Resource
    private IFunctionalTemplateService service;

    @RequestMapping("/getTemplate")
    public RestResult<FunctionalTemplateGenerateVO> getTemplate(
            @RequestBody FunctionalTemplateGenerateDTO dto) {
        return RestResult.success(service.getTemplate(dto),"getSuccess","获取成功");
    }


}
